from selenium.webdriver.common.by import By
class ClassHonoursLocator():
    # 班级荣誉菜单
    class_honous_menu = (By.XPATH, '//span[text()=" 班级荣誉"]')

    # 学生荣誉/添加荣誉
    add_honous = (By.XPATH, '//div[@aria-labelledby="tab-first"]/div[1]/div/button/span')
    # 班级荣誉/添加荣誉
    class_honous = (By.CSS_SELECTOR, 'div[id="tab-second"]')

    # 添加荣誉界面/标题标签--添加荣誉
    title_label = (By.XPATH, '//div[@aria-label="添加荣誉"]/div[1]/span')

    # 荣誉类型/学生荣誉
    type_students_honous = (By.XPATH, '//div[@class="el-radio-group"]/label[1]/span[1]/span')

    # 荣誉类型/班级荣誉
    type_class_honous = (By.XPATH, '//div[@class="el-radio-group"]/label[2]/span[1]/span')

    # 荣誉名称输入框
    honous_name = (By.CSS_SELECTOR, 'input[placeholder="请输入荣誉名称"]')
    # 荣誉名称输入框提示信息
    honous_name_tips = (By.XPATH, '//div[@aria-label="添加荣誉"]/div[2]/form/div[2]/div/div[2]')

    # 学年学期下拉框
    year_times = (By.XPATH, '//div[@aria-label="添加荣誉"]//input[@placeholder="请选择学年学期"]')
    # 学年学期列表1
    year_time1 = (By.XPATH, '//div[contains(@x-placement, "-start")]//ul/li[1]/span')
    # 学年学期列表2
    year_time2 = (By.XPATH, '//div[contains(@x-placement, "-start")]//ul/li[2]/span')

    # 年级班级下拉框
    grade_classes = (By.XPATH, '//div[@aria-label="添加荣誉"]//input[@placeholder="请选择年级班级"]')
    # 年级班级列表1
    grade_class1 = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="二年级1班"]')
    # 年级班级列表2
    grade_class2 = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="二年级2班"]')


    # 学生姓名下拉框
    # student_names = (By.XPATH, '//div[@aria-label="添加荣誉"]/div[2]/form/div[5]/div/div/div')
    student_names = (By.CSS_SELECTOR, 'input[placeholder="请选择学生姓名"]')
    # 学生姓名1
    student_name1 = (By.XPATH, '//div[contains(@x-placement,"-start")]//ul/li[1]')
    # 学生姓名2
    student_name2 = (By.XPATH, '//div[contains(@x-placement,"-start")]//ul/li[2]')

    # 评选方式下拉框
    selection_way = (By.XPATH, '//div[@aria-label="添加荣誉"]//input[@placeholder="请选择评定方式"]')
    # 方式1-学校评定
    way1 = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="学校评定"]')
    # 方式2-社会机构判定
    way2 = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="社会机构评定"]')
    # 方式3-班级评定
    way3 = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="班级评定"]')
    # 方式4-教育局评定
    way4 = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="教育局评定"]')
    # 评定方式title
    selection_title = (By.XPATH, '//div[@aria-label="添加荣誉"]/div[2]/form/div[5]/label')

    # 班级荣誉评定方式下拉框
    selection_way2 = (By.XPATH, '//div[@class="el-dialog__body"]/form/div[5]/div/div/div[1]')

    # 上传封面input标签
    coverpic = (By.XPATH, '//div[@class="upload-picture"]//input')
    # 班级荣誉/上传封面input标签
    coverpic2 = (By.XPATH, '//div[@class="upload-picture"]//input')

    # 添加荣耀/取消按钮
    cancel = (By.XPATH, '//div[@aria-label="添加荣誉"]/div[2]/div/button[1]/span')
    # 添加荣耀/确定按钮
    sure = (By.XPATH, '//div[@aria-label="添加荣誉"]/div[2]/div/button[2]/span')
    # 添加荣誉/提示信息
    alert = (By.XPATH, '//div[@role="alert"]/p')

    # 荣誉列表第一个/悬浮定位
    honous1 = (By.XPATH, '//div[@id="pane-first"]/div[2]/div/div')
    # 班级荣誉列表第一个/悬浮定位
    honous2 = (By.XPATH, '//div[@id="pane-second"]/div[2]/div/div')
    # 荣誉列表第一个/编辑按钮
    honous_editor = (By.XPATH, '//div[@class="the_stu"]/button[1]/span')
    # 编辑提交按钮
    sub_editor = (By.XPATH, '//div[@aria-label="dialog"]//span[text()="提交"]')
    # 班级荣誉/编辑提交按钮
    sub_editor2 = (By.XPATH, '//div[@aria-label="编辑荣誉"]//span[text()="提交"]')
    # 荣誉列表第一个/删除按钮
    honous_del = (By.XPATH, '//div[@id="pane-first"]/div[2]/div/div/div[2]/button[2]/span')
    # 班级荣誉/列表第一个/删除按钮
    honous_del2 = (By.XPATH, '//div[@id="pane-second"]/div[2]/div/div/div[2]/button[2]/span')
    # 确定删除按钮
    sure_del = (By.XPATH, '//div[@aria-label="系统提示"]/div/div[3]/button[2]/span')
    # 取消删除按钮
    cancel_del = (By.XPATH, '//div[@aria-label="系统提示"]/div/div[3]/button[1]/span')
    # 荣誉列表第一个/荣誉名称标签
    honous_title = (By.XPATH, '//div[@id="pane-first"]/div[2]/div[1]/div/div[1]')
    # 班级荣誉列表第一个/荣誉名称标签
    honous_title2 = (By.XPATH, '//div[@id="pane-second"]/div[2]/div[1]/div/div[1]')

    # 荣誉首页/年级班级下拉框
    home_grade_class = (By.XPATH, '//div[@class="el-card is-always-shadow"]/div/div/div[2]/div[1]/div[1]/div/div[2]/div')
    # 一年级1班
    home_grade_class1 = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[1]/span')
    # 一年级2班
    home_grade_class2 = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[2]/span')
    # 一年级3班
    home_grade_class3 = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[3]/span')

    # 荣誉首页/评定方式下拉框
    home_selection_way = (By.XPATH, '//div[@id="pane-first"]//input[@placeholder="请选择评定方式"]')
    # 学校评定
    home_selection_way1 = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="学校评定"]')
    # 社会机构评定
    home_selection_way2 = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="社会机构评定"]')
    # 班级评定
    home_selection_way3 = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="班级评定"]')
    # 教育局评定
    home_selection_way4 = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="教育局评定"]')

    # 荣誉首页/学生姓名输入框input标签
    home_student_name = (By.XPATH, '//div[@id="pane-first"]/div[1]/div/div[4]/input')

    # 右下角数量标签
    num = (By.XPATH, '//div[@aria-labelledby="tab-first"]//span[contains(text(), "共")]')







